]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
dateMenu: Mark string for translation
authorFlorian Müllner <fmuellner@gnome.org>
Sat, 19 Mar 2022 20:15:50 +0000 (21:15 +0100)
committerMarge Bot <marge-bot@gnome.org>
Sun, 20 Mar 2022 22:12:32 +0000 (22:12 +0000)
T_() is a convenience shortcut for looking up a string from the
locale defined by LC_TIME, but it isn't recognized as a gettext
keyword. To do that, we also have to wrap the string in N_() or
NC_().

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2246>

js/ui/dateMenu.js

index 36fcc10ef05bfdc6d5576c7f84a3effd121be5b0..71b932ad71b4063a6bed3ff0a2b1f8e70fe28888 100644 (file)
@@ -219,7 +219,7 @@ class EventsSection extends St.Button {
                 /* Translators: Shown in calendar event list as the start/end of events
                  * that only show day and month
                  */
-                format = T_('%m/%d');
+                format = T_(N_('%m/%d'));
             else
                 format = '%x';